{% extends 'base/base.html' %}
{% block title %}
    创建书籍
{% endblock %}

{% block css %}
    <link rel="stylesheet" href="/static/ckeditor/ckeditor.css">
    <link rel="stylesheet" href="/static/ckeditor/fixups.js">
{% endblock %}

{% block js %}
    <script src="/static/ckeditor/ckeditor-init.js"></script>
    <script src="/static/ckeditor/ckeditor/ckeditor.js"></script>
{% endblock %}


{% block main %}


<form method="post" action="">
    {% csrf_token %}
    <div class="form-group">
        {{ form.title.label_tag }}
        {{ form.title }}
    </div>

    <div class="form-group">
        {{ form.content.label_tag }}
        {{ form.content }}
    </div>

    <div class="form-group">
        {{ form.tags.label_tag }}
        {{ form.tags }}
    </div>

    <div class="form-group">
        {{ form.categorys.label_tag }}
        {{ form.categorys }}
    </div>

    <button type="submit" class="btn btn-success">提交</button>
    <a class="btn btn-success" href="{% url 'main:index' %}">取消</a>


</form>


{% endblock %}